{include file="layout/header" /}
<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">添加产品</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <form action="{:url('goods/add')}" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <label>产品类型</label>
            <select class="form-control" name="type_id" id="type_id">
                {volist name='types' id='vo'}
                <option value="{$vo.id}">{$vo.name}</option>
                {/volist}
            </select>
        </div>
        <div class="form-group">
            <label>产品名称</label>
            <input class="form-control" placeholder="产品名称" name="goods_name">
        </div>
        <div class="form-group">
            <label>评估名称</label>
            <input class="form-control" placeholder="评估名称" name="assessment_name">
        </div>
        <div class="form-group">
            <label>服务年限</label>
            <select class="form-control" name="goods_life" id="goods_life">
                <option value="1">1年</option>
                <option value="2">2年</option>
                <option value="3">3年</option>
                <option value="4">4年</option>
                <option value="5">5年</option>
            </select>
        </div>
        <div class="form-group">
            <label>评估周期</label>
            <select class="form-control" name="cycle_id" id="cycle_id">
                {volist name='cycles' id='vo'}
                <option value="{$vo.id}">{$vo.name}</option>
                {/volist}
            </select>
        </div>
        <div class="form-group">
            <label>窗口期</label>
            <input class="form-control" placeholder="" name="window_period" >
        </div>
        <div class="form-group">
            <label>产品图片</label>
            <input type="file" name="file">
        </div>
        <div class="form-group">
            <label>状态</label>
            <label class="radio-inline">
                <input type="radio" name="status" value="0" checked="">有效
            </label>
            <label class="radio-inline">
                <input type="radio" name="status" value="1">无效
            </label>
            <label class="radio-inline">
                <input type="radio" name="status" value="2">编辑中
            </label>
        </div>
        <div class="form-group">
            <label>价格</label>
            <input class="form-control" placeholder="" name="price" >
        </div>
        <input type="submit" value="提交"/>
    </form>
</div>
{include file="layout/footer" /}